Skip to content

Conversation

@max-charlamb
Copy link
Member

@max-charlamb max-charlamb commented Sep 5, 2025

@max-charlamb max-charlamb requested a review from a team as a code owner September 5, 2025 20:43
@davidwrighton
Copy link
Member

I believe we need to have a scheme to disable this test for versions of the runtime older than .NET 11 (unless of course you intend to fix this in downlevel versions), but this looks generally ok to me.

@steveisok
Copy link
Member

I believe we need to have a scheme to disable this test for versions of the runtime older than .NET 11 (unless of course you intend to fix this in downlevel versions), but this looks generally ok to me.

if (config.RuntimeFrameworkVersionMajor < 10)
is an example of how to pull that off.

@max-charlamb max-charlamb changed the title [SOS/DAC] Add test for DumpGCData [SOS/DAC] Add tests for DAC GC bugs Sep 8, 2025
noahfalk
noahfalk previously approved these changes Sep 9, 2025
Copy link
Member

@noahfalk noahfalk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Comments inline where I'm hoping we can simplify the config pattern.

Comment on lines +43 to 45
InitializeHandleRoots();

int i = _dependentHandles.BinarySearch((source, target));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found this bug while working on the tests. In some cases, this is not initialized before referencing.

noahfalk
noahfalk previously approved these changes Sep 9, 2025
@max-charlamb max-charlamb merged commit 17279a6 into main Sep 26, 2025
19 checks passed
@max-charlamb max-charlamb deleted the add-dumpgcdata-test branch September 26, 2025 16:42
@github-actions github-actions bot locked and limited conversation to collaborators Oct 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants